// 添加一条日常流水记录
function addDailyRecord(params) {
    return $axios({
        url: '/daily/addDailyRecord',
        method: 'post',
        data: {...params}
    })
}

// 获取日常流水分页
const getDailyPage = (params) => {
    return $axios({
        url: '/daily/page',
        method: 'post',
        data: {...params}
    })
}

// 删除接口
const deleteRecord = (ids) => {
    return $axios({
        url: '/daily',
        method: 'delete',
        params: {ids}
    })
}

// 获取统计数据
function getCountData(params) {
    return $axios({
        url: '/daily/getCountData',
        method: 'get',
        params
    })
}

// 获取图表数据
function getChartData(params) {
    return $axios({
        url: '/daily/getChartData',
        method: 'get',
        params
    })
}

